import http from '@/utils/httpRequest.js'

export function policy () {
  return new Promise((resolve, reject) => {
    http({
      url: this.$http.adornUrl(`/sys/oss/upload?token=${this.$cookie.get('token')}`),
      method: 'post',
      params: http.adornParams({})
    }).then(({data}) => {
      resolve(data)
    })
  })
}
